import { defineComponent, ref } from "vue";
import MyCalendar from "./calendar";
import classes from "./demo.module.scss";

export default defineComponent({
  name: "CalendarDemo",
  components: { MyCalendar },
  setup() {
    const date = ref(new Date());
    /** 渲染函数 */
    return () => (
      <div class={classes["box-top"]}>
        <my-calendar v-model={date.value}></my-calendar>
      </div>
    );
  },
});
